<!DOCTYPE html><html><head><title>README</title><link href="http://www.jboss.org/jdf/stylesheets/documentation.css" rel="stylesheet"></link><link href="http://www.jboss.org/jdf/stylesheets/pygments.css" rel="stylesheet"></link></head><body>
<h1><a id="helloworldjms-helloworld-jms-example" class="anchor" href="#helloworldjms-helloworld-jms-example"><span class="anchor-icon"></span></a>helloworld-jms: HelloWorld JMS Example</h1>

<p>Author: Weston Price<br/>
Level: Intermediate<br/>
Technologies: JMS<br/>
Summary: Demonstrates the use of a standalone (Java SE) JMS client<br/>
Target Product: EAP<br/>
Product Versions: EAP 6.1, EAP 6.2<br/>
Source: <a href="https://github.com/jboss-developer/jboss-eap-quickstarts/">https://github.com/jboss-developer/jboss-eap-quickstarts/</a>  </p>

<h2><a id="what-is-it" class="anchor" href="#what-is-it"><span class="anchor-icon"></span></a>What is it?</h2>

<p>This quickstart demonstrates the use of external JMS clients with Red Hat JBoss Enterprise Application Platform.</p>

<p>It contains the following:</p>

<ol>
<li><p>A message producer that sends messages to a JMS destination deployed to a JBoss server.</p></li>
<li><p>A message consumer that receives message from a JMS destination deployed to a JBoss server. </p></li>
</ol>

<h2><a id="system-requirements" class="anchor" href="#system-requirements"><span class="anchor-icon"></span></a>System requirements</h2>

<p>The application this project produces is designed to be run on Red Hat JBoss Enterprise Application Platform 6.1 or later. </p>

<p>All you need to build this project is Java 6.0 (Java SDK 1.6) or later, Maven 3.0 or later.</p>

<h2><a id="configure-maven" class="anchor" href="#configure-maven"><span class="anchor-icon"></span></a>Configure Maven</h2>

<p>If you have not yet done so, you must <a href="../README.html#configure-maven">Configure Maven</a> before testing the quickstarts.</p>

<h2><a id="add-an-application-user" class="anchor" href="#add-an-application-user"><span class="anchor-icon"></span></a>Add an Application User</h2>

<p>This quickstart uses secured management interfaces and requires that you create an application user to access the running application. Instructions to set up the quickstart application user can be found here: <a href="../README.html#add-an-application-user">Add an Application User</a></p>

<h2><a id="configure-the-jboss-enterprise-application-platform-6-server" class="anchor" href="#configure-the-jboss-enterprise-application-platform-6-server"><span class="anchor-icon"></span></a>Configure the JBoss Enterprise Application Platform 6 server</h2>

<p>You must first add the JMS <code>test</code> queue to the application server configuration file. You can configure JMS by running the  <code>configure-jms.cli</code> script provided in the root directory of this quickstart, by using the JBoss CLI interactively, or by manually editing the configuration file.</p>

<p><em>NOTE - Before you begin:</em></p>

<ol>
<li>If it is running, stop the JBoss server.</li>
<li>Backup the file: <code>JBOSS_HOME/standalone/configuration/standalone-full.xml</code></li>
<li>After you have completed testing this quickstart, you can replace this file to restore the server to its original configuration.</li>
</ol>

<h4><a id="configure-jms-by-running-the-jboss-cli-script" class="anchor" href="#configure-jms-by-running-the-jboss-cli-script"><span class="anchor-icon"></span></a>Configure JMS by Running the JBoss CLI Script</h4>

<ol>
<li><p>Start the JBoss server by typing the following: </p>
<div class="highlight"><pre><span class="n">For</span> <span class="n">Linux</span><span class="o">:</span>  <span class="n">JBOSS_HOME_SERVER_1</span><span class="o">/</span><span class="n">bin</span><span class="o">/</span><span class="n">standalone</span><span class="p">.</span><span class="n">sh</span> <span class="o">-</span><span class="n">c</span> <span class="n">standalone</span><span class="o">-</span><span class="n">full</span><span class="p">.</span><span class="n">xml</span>
<span class="n">For</span> <span class="n">Windows</span><span class="o">:</span>  <span class="n">JBOSS_HOME_SERVER_1</span><span class="err">\</span><span class="n">bin</span><span class="err">\</span><span class="n">standalone</span><span class="p">.</span><span class="n">bat</span> <span class="o">-</span><span class="n">c</span> <span class="n">standalone</span><span class="o">-</span><span class="n">full</span><span class="p">.</span><span class="n">xml</span>
</pre></div></li>
<li><p>Open a new command line, navigate to the root directory of this quickstart, and run the following command, replacing JBOSS_HOME with the path to your server:</p>
<div class="highlight"><pre><span class="n">JBOSS_HOME</span><span class="o">/</span><span class="n">bin</span><span class="o">/</span><span class="n">jboss</span><span class="o">-</span><span class="n">cli</span><span class="p">.</span><span class="n">sh</span> <span class="o">--</span><span class="n">connect</span> <span class="o">--</span><span class="n">file</span><span class="o">=</span><span class="n">configure</span><span class="o">-</span><span class="n">jms</span><span class="p">.</span><span class="n">cli</span> 
</pre></div>
<p>This script adds the <code>test</code> queue to the <code>messaging</code> subsystem in the server configuration. You should see the following result when you run the script:</p>
<div class="highlight"><pre><span class="cp">#1 jms-queue add --queue-address=testQueue --entries=queue/test,java:jboss/exported/jms/queue/test</span>
<span class="n">The</span> <span class="n">batch</span> <span class="n">executed</span> <span class="n">successfully</span><span class="p">.</span>
<span class="p">{</span><span class="s">&quot;outcome&quot;</span> <span class="o">=&gt;</span> <span class="s">&quot;success&quot;</span><span class="p">}</span>
</pre></div></li>
</ol>

<h4><a id="configure-jms-using-the-jboss-cli-tool-interactively" class="anchor" href="#configure-jms-using-the-jboss-cli-tool-interactively"><span class="anchor-icon"></span></a>Configure JMS Using the JBoss CLI Tool Interactively</h4>

<ol>
<li><p>Start the JBoss server by typing the following: </p>
<div class="highlight"><pre><span class="n">For</span> <span class="n">Linux</span><span class="o">:</span>  <span class="n">JBOSS_HOME_SERVER_1</span><span class="o">/</span><span class="n">bin</span><span class="o">/</span><span class="n">standalone</span><span class="p">.</span><span class="n">sh</span> <span class="o">-</span><span class="n">c</span> <span class="n">standalone</span><span class="o">-</span><span class="n">full</span><span class="p">.</span><span class="n">xml</span>
<span class="n">For</span> <span class="n">Windows</span><span class="o">:</span>  <span class="n">JBOSS_HOME_SERVER_1</span><span class="err">\</span><span class="n">bin</span><span class="err">\</span><span class="n">standalone</span><span class="p">.</span><span class="n">bat</span> <span class="o">-</span><span class="n">c</span> <span class="n">standalone</span><span class="o">-</span><span class="n">full</span><span class="p">.</span><span class="n">xml</span>
</pre></div></li>
<li><p>To start the JBoss CLI tool, open a new command line, navigate to the JBOSS_HOME directory, and type the following:</p>
<div class="highlight"><pre><span class="n">For</span> <span class="n">Linux</span><span class="o">:</span> <span class="n">bin</span><span class="o">/</span><span class="n">jboss</span><span class="o">-</span><span class="n">cli</span><span class="p">.</span><span class="n">sh</span> <span class="o">--</span><span class="n">connect</span>
<span class="n">For</span> <span class="n">Windows</span><span class="o">:</span> <span class="n">bin</span><span class="err">\</span><span class="n">jboss</span><span class="o">-</span><span class="n">cli</span><span class="p">.</span><span class="n">bat</span> <span class="o">--</span><span class="n">connect</span>
</pre></div></li>
<li><p>At the prompt, type the following:</p>
<div class="highlight"><pre><span class="p">[</span><span class="n">standalone</span><span class="err">@</span><span class="n">localhost</span><span class="o">:</span><span class="mi">9999</span> <span class="o">/</span><span class="p">]</span> <span class="n">jms</span><span class="o">-</span><span class="n">queue</span> <span class="n">add</span> <span class="o">--</span><span class="n">queue</span><span class="o">-</span><span class="n">address</span><span class="o">=</span><span class="n">testQueue</span> <span class="o">--</span><span class="n">entries</span><span class="o">=</span><span class="n">queue</span><span class="o">/</span><span class="n">test</span><span class="p">,</span><span class="n">java</span><span class="o">:</span><span class="n">jboss</span><span class="o">/</span><span class="n">exported</span><span class="o">/</span><span class="n">jms</span><span class="o">/</span><span class="n">queue</span><span class="o">/</span><span class="n">test</span>
</pre></div></li>
</ol>

<h4><a id="configure-jms-by-manually-editing-the-server-configuration-file" class="anchor" href="#configure-jms-by-manually-editing-the-server-configuration-file"><span class="anchor-icon"></span></a>Configure JMS by Manually Editing the Server Configuration File</h4>

<ol>
<li> If it is running, stop the JBoss server.</li>
<li> Backup the file: <code>JBOSS_HOME/standalone/configuration/standalone-full.xml</code></li>
<li> Open the file: JBOSS_HOME/standalone/configuration/standalone-full.xml</li>
<li><p>Add the JMS <code>test</code> queue as follows:</p>

<ul>
<li><p>Find the messaging subsystem:</p>
<div class="highlight"><pre><span class="o">&lt;</span><span class="n">subsystem</span> <span class="n">xmlns</span><span class="o">=</span><span class="s">&quot;urn:jboss:domain:messaging:1.1&quot;</span><span class="o">&gt;</span>
</pre></div></li>
<li><p>Scroll to the end of this section and add the following XML after the <code>&lt;/jms-connection-factories&gt;</code> end tag but before the <code>&lt;/hornetq-server&gt;</code> element:</p>
<div class="highlight"><pre>    <span class="nt">&lt;jms-destinations&gt;</span>
        <span class="nt">&lt;jms-queue</span> <span class="na">name=</span><span class="s">&quot;testQueue&quot;</span><span class="nt">&gt;</span>
            <span class="nt">&lt;entry</span> <span class="na">name=</span><span class="s">&quot;queue/test&quot;</span><span class="nt">/&gt;</span>
            <span class="nt">&lt;entry</span> <span class="na">name=</span><span class="s">&quot;java:jboss/exported/jms/queue/test&quot;</span><span class="nt">/&gt;</span>
        <span class="nt">&lt;/jms-queue&gt;</span>
    <span class="nt">&lt;/jms-destinations&gt;</span>
</pre></div></li>
<li><p>Save the changes and close the file.</p></li>
</ul></li>
</ol>

<h2><a id="start-the-jboss-server-with-the-full-profile" class="anchor" href="#start-the-jboss-server-with-the-full-profile"><span class="anchor-icon"></span></a>Start the JBoss Server with the Full Profile</h2>

<ol>
<li>Open a command line and navigate to the root of the JBoss server directory.</li>
<li><p>The following shows the command line to start the server with the full profile:</p>
<div class="highlight"><pre><span class="n">For</span> <span class="n">Linux</span><span class="o">:</span>   <span class="n">JBOSS_HOME</span><span class="o">/</span><span class="n">bin</span><span class="o">/</span><span class="n">standalone</span><span class="p">.</span><span class="n">sh</span> <span class="o">-</span><span class="n">c</span> <span class="n">standalone</span><span class="o">-</span><span class="n">full</span><span class="p">.</span><span class="n">xml</span>
<span class="n">For</span> <span class="n">Windows</span><span class="o">:</span> <span class="n">JBOSS_HOME</span><span class="err">\</span><span class="n">bin</span><span class="err">\</span><span class="n">standalone</span><span class="p">.</span><span class="n">bat</span> <span class="o">-</span><span class="n">c</span> <span class="n">standalone</span><span class="o">-</span><span class="n">full</span><span class="p">.</span><span class="n">xml</span>
</pre></div></li>
</ol>

<h2><a id="build-and-deploy-the-quickstart" class="anchor" href="#build-and-deploy-the-quickstart"><span class="anchor-icon"></span></a>Build and Deploy the Quickstart</h2>

<p>To run the quickstart from the command line:</p>

<ol>
<li><p>Make sure you have started the JBoss server. See the instructions in the previous section.</p></li>
<li><p>Open a command line and navigate to the root of the helloworld-jms quickstart directory:</p>
<div class="highlight"><pre><span class="n">cd</span> <span class="n">PATH_TO_QUICKSTARTS</span><span class="o">/</span><span class="n">helloworld</span><span class="o">-</span><span class="n">jms</span>
</pre></div></li>
<li><p>Type the following command to compile and execute the quickstart:</p>
<div class="highlight"><pre>    <span class="n">mvn</span> <span class="n">clean</span> <span class="n">compile</span> <span class="n">exec</span><span class="o">:</span><span class="n">java</span>
</pre></div></li>
</ol>

<h2><a id="investigate-the-console-output" class="anchor" href="#investigate-the-console-output"><span class="anchor-icon"></span></a>Investigate the Console Output</h2>

<p>If the maven command is successful, with the default configuration you will see output similar to this:</p>
<div class="highlight"><pre><span class="n">Mar</span> <span class="mi">14</span><span class="p">,</span> <span class="mi">2012</span> <span class="mi">1</span><span class="o">:</span><span class="mi">38</span><span class="o">:</span><span class="mi">58</span> <span class="n">PM</span> <span class="n">org</span><span class="p">.</span><span class="n">jboss</span><span class="p">.</span><span class="n">as</span><span class="p">.</span><span class="n">quickstarts</span><span class="p">.</span><span class="n">jms</span><span class="p">.</span><span class="n">HelloWorldJMSClient</span> <span class="n">main</span>
<span class="nl">INFO:</span> <span class="n">Attempting</span> <span class="n">to</span> <span class="n">acquire</span> <span class="n">connection</span> <span class="n">factory</span> <span class="s">&quot;jms/RemoteConnectionFactory&quot;</span>
<span class="n">Mar</span> <span class="mi">14</span><span class="p">,</span> <span class="mi">2012</span> <span class="mi">1</span><span class="o">:</span><span class="mi">38</span><span class="o">:</span><span class="mi">58</span> <span class="n">PM</span> <span class="n">org</span><span class="p">.</span><span class="n">jboss</span><span class="p">.</span><span class="n">as</span><span class="p">.</span><span class="n">quickstarts</span><span class="p">.</span><span class="n">jms</span><span class="p">.</span><span class="n">HelloWorldJMSClient</span> <span class="n">main</span>
<span class="nl">INFO:</span> <span class="n">Found</span> <span class="n">connection</span> <span class="n">factory</span> <span class="s">&quot;jms/RemoteConnectionFactory&quot;</span> <span class="n">in</span> <span class="n">JNDI</span>
<span class="n">Mar</span> <span class="mi">14</span><span class="p">,</span> <span class="mi">2012</span> <span class="mi">1</span><span class="o">:</span><span class="mi">38</span><span class="o">:</span><span class="mi">58</span> <span class="n">PM</span> <span class="n">org</span><span class="p">.</span><span class="n">jboss</span><span class="p">.</span><span class="n">as</span><span class="p">.</span><span class="n">quickstarts</span><span class="p">.</span><span class="n">jms</span><span class="p">.</span><span class="n">HelloWorldJMSClient</span> <span class="n">main</span>
<span class="nl">INFO:</span> <span class="n">Attempting</span> <span class="n">to</span> <span class="n">acquire</span> <span class="n">destination</span> <span class="s">&quot;jms/queue/test&quot;</span>
<span class="n">Mar</span> <span class="mi">14</span><span class="p">,</span> <span class="mi">2012</span> <span class="mi">1</span><span class="o">:</span><span class="mi">38</span><span class="o">:</span><span class="mi">58</span> <span class="n">PM</span> <span class="n">org</span><span class="p">.</span><span class="n">jboss</span><span class="p">.</span><span class="n">as</span><span class="p">.</span><span class="n">quickstarts</span><span class="p">.</span><span class="n">jms</span><span class="p">.</span><span class="n">HelloWorldJMSClient</span> <span class="n">main</span>
<span class="nl">INFO:</span> <span class="n">Found</span> <span class="n">destination</span> <span class="s">&quot;jms/queue/test&quot;</span> <span class="n">in</span> <span class="n">JNDI</span>
<span class="n">Mar</span> <span class="mi">14</span><span class="p">,</span> <span class="mi">2012</span> <span class="mi">1</span><span class="o">:</span><span class="mi">38</span><span class="o">:</span><span class="mi">58</span> <span class="n">PM</span> <span class="n">org</span><span class="p">.</span><span class="n">jboss</span><span class="p">.</span><span class="n">as</span><span class="p">.</span><span class="n">quickstarts</span><span class="p">.</span><span class="n">jms</span><span class="p">.</span><span class="n">HelloWorldJMSClient</span> <span class="n">main</span>
<span class="nl">INFO:</span> <span class="n">Sending</span> <span class="mi">1</span> <span class="n">messages</span> <span class="n">with</span> <span class="n">content</span><span class="o">:</span> <span class="n">Hello</span><span class="p">,</span> <span class="n">World</span><span class="o">!</span>
<span class="n">Mar</span> <span class="mi">14</span><span class="p">,</span> <span class="mi">2012</span> <span class="mi">1</span><span class="o">:</span><span class="mi">38</span><span class="o">:</span><span class="mi">58</span> <span class="n">PM</span> <span class="n">org</span><span class="p">.</span><span class="n">jboss</span><span class="p">.</span><span class="n">as</span><span class="p">.</span><span class="n">quickstarts</span><span class="p">.</span><span class="n">jms</span><span class="p">.</span><span class="n">HelloWorldJMSClient</span> <span class="n">main</span>
<span class="nl">INFO:</span> <span class="n">Received</span> <span class="n">message</span> <span class="n">with</span> <span class="n">content</span> <span class="n">Hello</span><span class="p">,</span> <span class="n">World</span><span class="o">!</span>
</pre></div>
<p><em>Note</em>: After the above INFO message, you may see the following error. You can ignore the error as it is a well known error message and does not indicate the maven command was unsuccessful in any way. </p>
<div class="highlight"><pre><span class="n">Mar</span> <span class="mi">14</span><span class="p">,</span> <span class="mi">2012</span> <span class="mi">1</span><span class="o">:</span><span class="mi">38</span><span class="o">:</span><span class="mi">58</span> <span class="n">PM</span> <span class="n">org</span><span class="p">.</span><span class="n">jboss</span><span class="p">.</span><span class="n">naming</span><span class="p">.</span><span class="n">remote</span><span class="p">.</span><span class="n">protocol</span><span class="p">.</span><span class="n">v1</span><span class="p">.</span><span class="n">RemoteNamingStoreV1</span><span class="err">$</span><span class="n">MessageReceiver</span> <span class="n">handleEnd</span>
<span class="nl">ERROR:</span> <span class="n">Channel</span> <span class="n">end</span> <span class="n">notification</span> <span class="n">received</span><span class="p">,</span> <span class="n">closing</span> <span class="n">channel</span> <span class="n">Channel</span> <span class="n">ID</span> <span class="n">cd114175</span> <span class="p">(</span><span class="n">outbound</span><span class="p">)</span> <span class="n">of</span> <span class="n">Remoting</span> <span class="n">connection</span> <span class="mf">00392f</span><span class="n">e8</span> <span class="n">to</span> <span class="n">localhost</span><span class="o">/</span><span class="mf">127.0.0.1</span><span class="o">:</span><span class="mi">4447</span>
</pre></div>
<h2><a id="optional-properties" class="anchor" href="#optional-properties"><span class="anchor-icon"></span></a>Optional Properties</h2>

<p>The example provides for a certain amount of customization for the <code>mvn:exec</code> plugin using the system properties.</p>

<ul>
<li><p><code>username</code></p>

<p>This username is used for both the JMS connection and the JNDI look-up.  Instructions to set up the quickstart application user can be found here: <a href="../README.html#add-an-application-user">Add an Application User</a>.</p>

<p>Default: <code>quickstartUser</code></p></li>
<li><p><code>password</code></p>

<p>This password is used for both the JMS connection and the JNDI look-up.  Instructions to set up the quickstart application user can be found here: <a href="../README.html#add-an-application-user">Add an Application User</a></p>

<p>Default: <code>quickstartPwd1!</code></p></li>
<li><p><code>connection.factory</code></p>

<p>The name of the JMS ConnectionFactory you want to use.</p>

<p>Default: <code>jms/RemoteConnectionFactory</code></p></li>
<li><p><code>destination</code></p>

<p>The name of the JMS Destination you want to use.</p>

<p>Default: <code>jms/queue/test</code></p></li>
<li><p><code>message.count</code></p>

<p>The number of JMS messages you want to produce and consume.</p>

<p>Default: <code>1</code></p></li>
<li><p><code>message.content</code></p>

<p>The content of the JMS TextMessage.</p>

<p>Default: <code>&quot;Hello, World!&quot;</code></p></li>
<li><p><code>java.naming.provider.url</code></p>

<p>This property allows configuration of the JNDI directory used to lookup the JMS destination. This is useful when the client resides on another host. </p>

<p>Default: <code>&quot;localhost&quot;</code></p></li>
</ul>

<h2><a id="undeploy-the-archive" class="anchor" href="#undeploy-the-archive"><span class="anchor-icon"></span></a>Undeploy the Archive</h2>

<ol>
<li>Make sure you have started the JBoss Server as described above.</li>
<li>Open a command line and navigate to the root directory of this quickstart.</li>
<li><p>When you are finished testing, type this command to undeploy the archive:</p>
<div class="highlight"><pre><span class="n">mvn</span> <span class="n">jboss</span><span class="o">-</span><span class="n">as</span><span class="o">:</span><span class="n">undeploy</span>
</pre></div></li>
</ol>

<h2><a id="remove-the-jms-configuration" class="anchor" href="#remove-the-jms-configuration"><span class="anchor-icon"></span></a>Remove the JMS Configuration</h2>

<p>You can remove the JMS configuration by running the  <code>remove-jms.cli</code> script provided in the root directory of this quickstart or by manually restoring the back-up copy the configuration file. </p>

<h3><a id="remove-the-jms-configuration-by-running-the-jboss-cli-script" class="anchor" href="#remove-the-jms-configuration-by-running-the-jboss-cli-script"><span class="anchor-icon"></span></a>Remove the JMS Configuration by Running the JBoss CLI Script</h3>

<ol>
<li><p>Start the JBoss server by typing the following: </p>
<div class="highlight"><pre><span class="n">For</span> <span class="n">Linux</span><span class="o">:</span>  <span class="n">JBOSS_HOME_SERVER_1</span><span class="o">/</span><span class="n">bin</span><span class="o">/</span><span class="n">standalone</span><span class="p">.</span><span class="n">sh</span> <span class="o">-</span><span class="n">c</span> <span class="n">standalone</span><span class="o">-</span><span class="n">full</span><span class="p">.</span><span class="n">xml</span>
<span class="n">For</span> <span class="n">Windows</span><span class="o">:</span>  <span class="n">JBOSS_HOME_SERVER_1</span><span class="err">\</span><span class="n">bin</span><span class="err">\</span><span class="n">standalone</span><span class="p">.</span><span class="n">bat</span> <span class="o">-</span><span class="n">c</span> <span class="n">standalone</span><span class="o">-</span><span class="n">full</span><span class="p">.</span><span class="n">xml</span>
</pre></div></li>
<li><p>Open a new command line, navigate to the root directory of this quickstart, and run the following command, replacing JBOSS_HOME with the path to your server:</p>
<div class="highlight"><pre><span class="n">JBOSS_HOME</span><span class="o">/</span><span class="n">bin</span><span class="o">/</span><span class="n">jboss</span><span class="o">-</span><span class="n">cli</span><span class="p">.</span><span class="n">sh</span> <span class="o">--</span><span class="n">connect</span> <span class="o">--</span><span class="n">file</span><span class="o">=</span><span class="n">remove</span><span class="o">-</span><span class="n">jms</span><span class="p">.</span><span class="n">cli</span> 
</pre></div>
<p>This script removes the <code>test</code> queue from the <code>messaging</code> subsystem in the server configuration. You should see the following result when you run the script:</p>
<div class="highlight"><pre><span class="cp">#1 jms-queue remove --queue-address=testQueue</span>
<span class="n">The</span> <span class="n">batch</span> <span class="n">executed</span> <span class="n">successfully</span><span class="p">.</span>
<span class="p">{</span><span class="s">&quot;outcome&quot;</span> <span class="o">=&gt;</span> <span class="s">&quot;success&quot;</span><span class="p">}</span>
</pre></div></li>
</ol>

<h3><a id="remove-the-jms-configuration-manually" class="anchor" href="#remove-the-jms-configuration-manually"><span class="anchor-icon"></span></a>Remove the JMS Configuration Manually</h3>

<ol>
<li>If it is running, stop the JBoss server.</li>
<li>Replace the <code>JBOSS_HOME/standalone/configuration/standalone-full.xml</code> file with the back-up copy of the file.</li>
</ol>

<h2><a id="run-the-quickstart-in-jboss-developer-studio-or-eclipse" class="anchor" href="#run-the-quickstart-in-jboss-developer-studio-or-eclipse"><span class="anchor-icon"></span></a>Run the Quickstart in JBoss Developer Studio or Eclipse</h2>

<p>You can also start the server and deploy the quickstarts from Eclipse using JBoss tools. For more information, see <a href="../README.html#use-jboss-developer-studio-or-eclipse-to-run-the-quickstarts">Use JBoss Developer Studio or Eclipse to Run the Quickstarts</a> </p>

<h2><a id="debug-the-application" class="anchor" href="#debug-the-application"><span class="anchor-icon"></span></a>Debug the Application</h2>

<p>If you want to debug the source code or look at the Javadocs of any library in the project, run either of the following commands to pull them into your local repository. The IDE should then detect them.</p>
<div class="highlight"><pre>    <span class="n">mvn</span> <span class="n">dependency</span><span class="o">:</span><span class="n">sources</span>
    <span class="n">mvn</span> <span class="n">dependency</span><span class="o">:</span><span class="n">resolve</span> <span class="o">-</span><span class="n">Dclassifier</span><span class="o">=</span><span class="n">javadoc</span>
</pre></div></body></html>
